package com.sgcc.sx.pmos.mobileapp.activity;


import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.sgcc.sx.pmos.arouter.app.AppArouterPath;
import com.sgcc.sx.pmos.common.base.BasePresenter;
import com.sgcc.sx.pmos.common.base.MvpBaseActivity;
import com.sgcc.sx.pmos.common.utils.HtmlTextUtils;
import com.sgcc.ln.pmos.common.widget.TitleBar;
import com.sgcc.pmos.nativesdk.R;


@Route(path = AppArouterPath.APP_STRINGAGREEMENT)
public class StringAgreementActivity extends MvpBaseActivity {


    private TitleBar tbTitleBar;
    private TextView tvContent;

    @Autowired
    public String title;

    @Autowired
    public String content;


    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_string_agreement;
    }


    @Override
    protected void initViews() {
        super.initViews();
        tbTitleBar = findViewById(R.id.tbTitleBar);
        tvContent = findViewById(R.id.tvContent);
        tbTitleBar.setTitle(title);
        tbTitleBar.setRightIcon(R.mipmap.go_main, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                goMainActivity();
            }
        });
        HtmlTextUtils.onSuccess(content, tvContent);
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}